/*
  Tên:Nguyễn Văn Huy
  MSSV:11374891
  Lớp:DHTH7DLT
  Ngày hoàn thành:28/04/2012
  */
#ifndef TREEITEM_H
#define TREEITEM_H
#include <QList>
#include <QVariant>
#include <QVector>

class TreeItem
{
public:
    TreeItem(const QList<QVariant>& data,TreeItem* parent=0);
    ~TreeItem();
    void AddChild(TreeItem* child);
    TreeItem* GetChild(int rowIndex);
    int GetNumberOfChildren() const;
    int GetNumberOfColumns() const;
    QVariant GetData(int columnIndex) const;
    int GetRowIndex() const;
        //QVariant data(int column) const;
    TreeItem* GetParent();
private:
    QList<TreeItem*> _Children;
    QList<QVariant>  _ItemData;
    TreeItem*        _Parent;
};

#endif // TREEITEM_H
